{
 "cells": [
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.439749Z",
     "start_time": "2025-01-04T11:19:38.435746Z"
    }
   },
   "cell_type": "code",
   "source": [
    "a=[1,2,3]\n",
    "b=[4,5,6]"
   ],
   "id": "ecde581e045438b4",
   "outputs": [],
   "execution_count": 10
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.445639Z",
     "start_time": "2025-01-04T11:19:38.441742Z"
    }
   },
   "cell_type": "code",
   "source": "c=[a,b]",
   "id": "3a4f8972b41da79b",
   "outputs": [],
   "execution_count": 11
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.451327Z",
     "start_time": "2025-01-04T11:19:38.447645Z"
    }
   },
   "cell_type": "code",
   "source": [
    "import copy\n",
    "d=copy.deepcopy(c)"
   ],
   "id": "d9d7d3b3baa87779",
   "outputs": [],
   "execution_count": 12
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.456497Z",
     "start_time": "2025-01-04T11:19:38.452333Z"
    }
   },
   "cell_type": "code",
   "source": "a[0]=100",
   "id": "b344667d2d352638",
   "outputs": [],
   "execution_count": 13
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.514165Z",
     "start_time": "2025-01-04T11:19:38.509515Z"
    }
   },
   "cell_type": "code",
   "source": [
    "print(c)\n",
    "print(d)"
   ],
   "id": "2c759ed7aeaffa3c",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[100, 2, 3], [4, 5, 6]]\n",
      "[[1, 2, 3], [4, 5, 6]]\n"
     ]
    }
   ],
   "execution_count": 14
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.543401Z",
     "start_time": "2025-01-04T11:19:38.539174Z"
    }
   },
   "cell_type": "code",
   "source": [
    "print(id(c))\n",
    "print(id(d))"
   ],
   "id": "7d187580828e6e1f",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2340172598976\n",
      "2340172709504\n"
     ]
    }
   ],
   "execution_count": 15
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-01-04T11:19:38.550781Z",
     "start_time": "2025-01-04T11:19:38.545406Z"
    }
   },
   "cell_type": "code",
   "source": [
    "print(id(c[0]))\n",
    "print(id(d[0]))"
   ],
   "id": "d4f8d193509765b3",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2340174016064\n",
      "2340167017024\n"
     ]
    }
   ],
   "execution_count": 16
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
